import React from 'react'
import LoginLayout from './LoginLayout'
import BasicLayout from './BasicLayout'

function Layout({ location }) {
	if (location.pathname.toLowerCase() === '/login') {
		return (
			<LoginLayout>
				{children}
			</LoginLayout>
		)
	}
	return ( 
		<BasicLayout>{children}</BasicLayout>
	)
}

export default Layout;
